package com.jxlg.action;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.util.ServletContextAware;


//import com.giyo.parking.bo.PageBo;
//import com.giyo.parking.bo.SetProxyBo;
//import com.giyo.parking.report.XMLReportUtil;
import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport implements ServletRequestAware, ServletContextAware, ServletResponseAware {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1861509366121137130L;
	private HttpServletRequest servletRequest = null;
	private HttpServletResponse servletResponse = null;
	private ServletContext servlet = null;

	// protected Logger log = Logger.getLogger(this.getClass());

	public ServletContext getServlet() {
		return servlet;
	}

	public final void setServlet(ServletContext servlet) {
		this.servlet = servlet;
	}

	public HttpServletRequest getServletRequest() {
		return servletRequest;
	}

	public final void setServletRequest(HttpServletRequest servletRequest) {
		this.servletRequest = servletRequest;
	}


	public void setServletContext(ServletContext context) {
		this.setServlet(context);
	}

	public HttpServletResponse getServletResponse() {
		return servletResponse;
	}

	public void setServletResponse(HttpServletResponse servletResponse) {
		this.servletResponse = servletResponse;
	}
}